package com.yy.wga.user.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yy.wga.user.feign.request.UserRelationListReq;
import com.yy.wga.user.feign.response.UserRelationListResp;
import com.yy.wga.user.service.pojo.UserRelationDO;

import java.util.List;

/**
 * 直播用户锁粉关系(UserRelation)表服务接口
 *
 * @author guochao
 * @since 2022-07-27 22:12:32
 */
public interface UserRelationService extends IService<UserRelationDO> {

    /**
     * 通过用户id删除数据，物理删除
     * @param userId
     */
    void removeByUserId(Long userId);

    /**
     * 通过用户id删除数据，物理删除
     * @param parentUserId
     */
    void removeByParentUserId(Long parentUserId);

    /**
     * 查询粉丝列表
     * @param request
     * @return
     */
    List<UserRelationListResp> listData(UserRelationListReq request);
}
